package com.hao.tool.extra.cloud.module.ali.fac;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description
 *
 * @author RuiHaoZ on CMHK.jx
 * @date 2020-07-26 17:39
 */
@Getter
@Setter
@Accessors(chain = true)
public class AlAccessToken {

    private String accessKeyId;
    private String accessKeySecret;

    private String appKey;
    private String appSecret;
    private String appCode;

    public AlAccessToken(String accessKeyId, String accessKeySecret) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
    }


    public static AlAccessToken build() {
        String keyId = "LTAI2edteuKdGeil";
        String keySecret = "F0CT8dHmgCW1cNr4m6tc2QvvOOCC2N";
        return new AlAccessToken(keyId, keySecret)
                .setAppCode("bc8974e492a14914b1705717b645206b")
                .setAppKey("25055296")
                .setAppSecret("5d1aefe7e1a7566a78d1ef4d0cae4176");

    }


}
